package com.example.sps.commons;

import lombok.Data;
import lombok.Getter;

/**
 * @ProjectName: Sps
 * @Titile: ServiceCode
 * @Author: nency
 * @Description:
 */
public enum ServiceCode {
    OK(20000),
    ERROR(30011),
    ERROR_UPLOAD(30012),
    ERROR_UNKNOWN(30000),
    ERROR_ACCOUNT_LOCK(30001),
    ERROR_LOGIN(30002),
    ERROR_ADD(30003),
    ERROR_DELETE(30004),
    ERROR_UPDATE(30005),
    ERROR_QUERY(30006),
    ERROR_NOT_FOUND(30007),
    ERROR_BAD_REQUEST(30008),
    ERROR_TOKEN_EXPIRE(30009),
    ERROR_TOKEN_UNKNOWN(30010);
    @Getter
    private Integer code;


    ServiceCode(Integer code){
        this.code = code;
    }
}

